import request from "@/utils/request"
import type { ILoginInfo,IAuth } from "@/types"

// ILoginInfo  登录字段验证
// IAuth  登录返回数据类型验证

export const auth = ({ username, password }: ILoginInfo) =>{
    return request.post<IAuth,IAuth>(`/auth`,{ 
        username, password 
    })
}

